var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.updateInfoQuest(61333, "act1=610061310");
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection();
            cm.inGameDirectionEvent_MoveAction(4);
            cm.emotion(7, 900000);
            cm.fieldEffect_PlayFieldSound("Sound/SoundEff.img/blackHeaven/text", 100);
            cm.inGameDirectionEvent_AskAnswerTime(5000);
            cm.curNodeEventEnd(true);
            cm.effect_Text(["#fn黑体##fs18#卢坎的记忆"], [100, 2200, 6, -50, -50, 1, 4, 0, 0, 0, 0])
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("哎哟，我的头好疼。\r\n这差事下次我绝对不干了。", 57, 0, false, true)
            } else {
                if (status === a++) {
                    cm.inGameDirectionEvent_MoveAction(0);
                    cm.inGameDirectionEvent_AskAnswerTime(1200)
                } else {
                    if (status === a++) {
                        cm.sendNormalTalk_Bottom("等会儿……我这是在哪？", 57, 0, false, true)
                    } else {
                        if (status === a++) {
                            cm.eventSKill(0);
                            cm.setInGameDirectionMode(false, true, false);
                            cm.dispose()
                        }
                    }
                }
            }
        }
    }
};